﻿namespace Core
{
    /// <summary>
    /// Returns information whether translation has succeeded or not and error message, if any
    /// </summary>
    public class TranslateResult
    {
        /// <summary>
        /// Returns true if translation successful
        /// </summary>
        public bool Success { get; set; }

        /// <summary>
        /// Error message. Null if transalation is successful.
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// Returns translated text when translating a single text. Otherwise empty.
        /// </summary>
        public string Text { get; set; }
    }
}
